//
// Created by xzy.xiao on 2022/6/8.
//

#include "Rectangle.h"

Rectangle::Rectangle() {}

Rectangle::Rectangle(double length, double width) : length(length), width(width) {}

double Rectangle::getLength() const {
    return length;
}

void Rectangle::setLength(double length) {
    Rectangle::length = length;
}

double Rectangle::getWidth() const {
    return width;
}

void Rectangle::setWidth(double width) {
    Rectangle::width = width;
}

double Rectangle::getArea() {
    return this->length * this->width;
}
